package ProxyPattern;
//房屋中介
public class EstateAgent extends AgentParticipant{
    private String name;
    private HouseSeller seller = new HouseSeller("老贾");

    public EstateAgent(String name){
        this.name = name;
    }

    @Override
    public void EstateSellingOps() {
        System.out.println("im the agent "+name+" who sells the house of"+seller.getName());
        seller.EstateSellingOps();
    }
}
